package cn.shop.transcation.order.mapper;

import cn.shop.transcation.order.entity.OrderReward;
import cn.shop.transcation.order.entity.OrderRewardQueryReq;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface OrderRewardMapper extends BaseMapper<OrderReward> {

    Page<OrderReward> pageWithOrderReward(@Param("page") Page<OrderReward> page, @Param("req") OrderRewardQueryReq req);

    Map<String, Object> statistics(@Param("req") OrderRewardQueryReq req);

    List<OrderReward> queryReward(List<Integer> types);

}
